

//获取当前时间
function refresh_timer(){
  var now = new Date();
  var y = now.getFullYear();
  var m = now.getMonth() + 1; 
   m = m < 10 ? '0'+m : m;
  var d = now.getDate();
   d = d < 10 ? '0'+d : d;   
  var H = now.getHours();
   H = H < 10 ? '0'+H : H;
  var i = now.getMinutes();
   i = i < 10 ? '0'+i : i;
  var s = now.getSeconds();
   s = s < 10 ? '0'+s : s;
   
   var show_obj = document.getElementById('timer');
   var show_str =  '' + y + '-' + m + '-' + d +" "+ H +':' + i +':' + s;
   show_obj.innerHTML = "<b>" + show_str + "</b>"; 
 }

function get_time(){
  setInterval(refresh_timer,1000);
}
 
 //top的 前进，后退，刷新等按钮
 
 //首页
function winIndex() {
	window.top.location.reload(); 
}

//后退
function winBack() {
	window.parent.frames['centerFrame'].frames['bodyFrame'].frames['mainFrame'].history.go(-1);
}

//前进
function winForward() {
	window.parent.frames['centerFrame'].frames['bodyFrame'].frames['mainFrame'].history.go(1);
}

//刷新
function winFlush() {
	window.parent.frames['centerFrame'].frames['bodyFrame'].frames['mainFrame'].location.reload();
}

//退出
function logout() {
	window.parent.location.href="front/logout.action";
	
}